﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Gmis.Public;

namespace Gmis.Web.Manage.Village
{
    public partial class UploadImageAdd : System.Web.UI.Page
    {
        public string action = ""; //动作
        public string sId = "";// 传入的id  空代表新增 有值代表修改
        public string fileType = "";
        public Model.NewsFile model = new Model.NewsFile();

        protected void Page_Load(object sender, EventArgs e)
        {
            //传入ID 和操作
            sId = CommonFunction.getRequestValue("Id");
            action = CommonFunction.getRequestValue("action");
            fileType = CommonFunction.getRequestValue("filetype");
            if (sId != "")
            {
                BLL.NewsFile bll = new BLL.NewsFile();
                model = bll.GetModel(sId);
            }           

        }
    }
}